<?php require_once('conexion.php');
$cn=  Conectarse();
$listado=  mysql_query("select * from rubros;",$cn);
?>
<!DOCTYP	E html>
<html>	
    <head>
        <title>Listados con jquery datatable</title>
        <meta charset="utf-8">
        <!--    ESTILO GENERAL   -->
        <link rel="stylesheet" type="text/css" media="screen" href="../../script/bootstrap/css/bootstrap.css" />
		<!--    FORMATO DE TABLAS    -->
        <script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
        <script type="text/javascript" language="javascript" src="js/jslistadopaises.js"></script>
	   <!--    FORMATO DE TABLAS    -->

    </head>
    <body>
 

			<table class="table table-striped table-hover " id="tabla_lista_paises">
                <thead>
                    <tr>
                        <th>id</th><!--Estado-->
                        <th>Rubro</th>
                    </tr>
                </thead>
                  <tbody>
                    <?php

     
                   while($reg=  mysql_fetch_array($listado))
                   {
                               echo '<tr>';
                               echo '<td >'.mb_convert_encoding($reg['id'], "UTF-8").'</td>';
                               echo '<td>'.mb_convert_encoding($reg['rubro'], "UTF-8").'</td>';
                               echo '</tr>';
                     
                        }
                    ?>
                <tbody>
            </table>
		<script src="../../script/jquery/jquery.min.js"></script>
        <script src="../../script/bootstrap/js/bootstrap.min.js"></script>
       
	</body>
</html>
